//
//  GoToArticleDetail.m
//  yigou
//
//  Created by wangdianlei on 2017/2/17.
//  Copyright © 2017年 hanyiwang. All rights reserved.
//

#import "GoToArticleDetail.h"
#import "ArticleWebViewController.h"

@implementation GoToArticleDetail

- (void)go:(id)context data:(id)data {
    [super go:context data:data];
    NSDictionary *detailArticle = data;
    NSString *articleContent =  [detailArticle objectForKey:@"content_id"];
    NSString *articleAuthor =  [detailArticle objectForKey:@"user_id"];
    NSString *articleTribe =  [detailArticle objectForKey:@"tribe_id"];
    
    ArticleWebViewController *articel = [ArticleWebViewController new];
    articel.articleContent = articleContent;
    articel.articleUserId = articleAuthor;
    articel.articleTribeId = articleTribe;
    
    UIViewController *vc = context;
    [vc.navigationController pushViewController:articel animated:YES];
}

@end
